import Vue from 'vue'
import Router from 'vue-router'

import MyInformation from '../view/MyInformation'
import Integral from '../view/Integral'
import UserLogin from '../view/UserLogin'
import OrderList from '../view/OrderList'
import UserRegister from '../view/UserRegister'
import OrderDetails from '../view/OrderDetails'
import MemberCenter from '../view/MemberCenter'
import SearchList from '../view/SearchList'
import ProductDetails from '../view/ProductDetails'
import HomePage from '../view/HomePage'
import MenuList from '../view/MenuList'
import PlaceOrder from "../view/PlaceOrder";
import PeopleNumber from "../view/PeopleNumber";
Vue.use(Router)

export default new Router({
  routes: [
    //我的资料页面
    {
      path: '/MyInformation',
      name: 'MyInformation',
      component: MyInformation
    },
    //用户登录页面
    {
      path: '/',
      name: 'UserLogin',
      component: UserLogin
    },
    //积分详情页面
    {
      path: '/Integral',
      name: 'Integral',
      component: Integral
    },
    //订单列表页面
    {
      path: '/OrderList',
      name: 'OrderList',
      component: OrderList
    },
    //用户注册页面
    {
      path: '/UserRegister',
      name: 'UserRegister',
      component: UserRegister
    },
    //订单详情
    {
      path: '/OrderDetails',
      name: 'OrderDetails',
      component: OrderDetails
    },
    //会员中心
    {
      path: '/MemberCenter',
      name: 'MemberCenter',
      component: MemberCenter
    },
    //搜索列表
    {
      path: '/SearchList',
      name: 'SearchList',
      component: SearchList
    },
    //商品详情
    {
      path: '/ProductDetails',
      name: 'ProductDetails',
      component: ProductDetails
    },
    //首页
    {
      path: '/HomePage',
      name: 'HomePage',
      component: HomePage
    },
    //菜单
    {
      path: '/MenuList',
      name: 'MenuList',
      component: MenuList
    },
    //创建订单
    {
      path: '/PlaceOrder',
      name: 'PlaceOrder',
      component: PlaceOrder
    },
    {
      path: '/PeopleNumber',
      name: 'PeopleNumber',
      component: PeopleNumber
    }
  ]
})
